#ifndef _MESSAGE_H
#define _MESSAGE_H

typedef struct message_t {
	char * subject;
	char * body;
	char * from; /* user */
	char * to; /* user */
} Message_t;

Message_t * message_create();
Message_t * message_read( Message_t * message, const char * data );
void * message_write( Message_t * message, char * data );
void message_destroy( Message_t * message );

#endif
